﻿<template>
  <div>
    HOME
    {{list.length}}
  </div>
</template>

<script>
import {getTest} from "@/api/home";

export default {
  name: "Home",
  data(){
    return {
      list:[]
    }
  },
  mounted() {
    this.queryList()
  },
  methods:{
    queryList(){
      getTest().then(res=>{
        console.log(res)
        this.list = res
      })
    }
  }
}
</script>

<style scoped>

</style>
